package commands;

import IA.InformationAggregator;

/**
 *
 * @author Pop
 */
public class CmdBrowseMenuByRating extends Command{
    private Double rating;
    public CmdBrowseMenuByRating(InformationAggregator ia, String ratingStr){
        super(ia);
        rating = Double.parseDouble(ratingStr);
    }
    @Override
    public Object execute() {
        return ia.getMenu().getMenuByRating(rating);
    }
}
